package cn.yj.syslog.entity;

import cn.yj.common.StringToDateDeSerializer;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author 永健
 * @since 2021-06-20 13:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_page_view")
public class PageView extends Model<PageView> {
    @TableId(type = IdType.AUTO)
    private String id;

    @JsonDeserialize(using = StringToDateDeSerializer.class)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonDeserialize(using = StringToDateDeSerializer.class)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private String ip;

    private String openid;

    private String schoolName;

}
